﻿@model ZDSoft.TES.Entity.SystemEntity.SystemFunction
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Create</title>
    <script src='@Url.Content("~/Scripts/PageCreater/Scripts/jquery-1.5.1.min.js")' type="text/javascript"></script>
    <script src='@Url.Content("~/Scripts/PageCreater/Scripts/PageCreater.js")' type="text/javascript"></script>
    <link href='@Url.Content("~/Scripts/PageCreater/Css/Style.css")' rel="stylesheet" type="text/css" />
    <script src='@Url.Content("~/Scripts/zTree/js/jquery-1.4.4.min.js")' type="text/javascript"></script>
    <link href='@Url.Content("~/Scripts/zTree/css/zTreeStyle/zTreeStyle.css")' rel="stylesheet" type="text/css" />
    <script src='@Url.Content("~/Scripts/zTree/js/jquery.ztree.core-3.5.js")' type="text/javascript"></script>
    <script src='@Url.Content("~/Scripts/zTree/js/jquery.ztree.excheck-3.5.js")' type="text/javascript"></script>
    <script src='@Url.Content("~/Scripts/zTree/js/jquery.ztree.exedit-3.5.js")' type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $.ajaxSetup({ cache: false });
            var str = "SystemFunctionName,功能名称,false,text,notnull,"
                        + "ControllerName,控制器名,false,password,notnull,"
                        + "ActionName,方法名,false,text,notnull,"
                         + "IsActive,状态,false,select|激活!true|注销!false,notnull,"
                        + "Opreate,操作,false,null,null";
            CreatePageFram(str);
        })
        function SubmitPage() {
            $.ajax({
                type: "Post",
                url: "/SystemFunction/Create",
                data: { SystemFunctionName: $("#SystemFunctionName").val(), ControllerName: $("#ControllerName").val(), ActionName: $("#ActionName").val(), IsActive: $("#IsActive").val() },
                success: function () {
                    alert("添加成功！");
                    window.location = "/SystemFunction/Index";
                }
            })
        }
    </script>
</head>
<body>
    <div class="Content">
        <p>
            @Html.ActionLink("返回列表", "Index")
        </p>
        <p>
            <input id="btnSubmit" type="button" value="保存" class="btn3" onclick="SubmitPage()" /></p>
        <form id="Info" method="post">
        <div style="float: left; width: 30%;">
            <fieldset style="border: none;">
                <legend>请输入基本信息</legend>
                <div id="divContent">
                </div>
            </fieldset>
        </div>
        </form>
    </div>
</body>
</html>
